package com.lpc.carinfo;

import android.app.Application;
import android.content.Context;

import com.lpc.carinfo.db.MyDB;
import com.lpc.carinfo.exception.CrashHandler;

/**
 * Created by lipc0113 on 2017/11/18.
 */

public class MyApplication extends Application {

    private static Context mContext = null;

    @Override
    public void onCreate() {
        super.onCreate();

        mContext = this;

        CrashHandler crashHandler = new CrashHandler();
        crashHandler.init();

        MyDB.getInstace().init();
    }

    public static Context getApplication() {
        return mContext;
    }
}
